package com.ayh.campusfun.common;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.List;

/**
 * @author ayh
 * @create 2021/3/18 0018 14:53
 * 分页返回实体类
 * total 总数
 * code  是否成功
 * data 当前页结果集
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PageResult<T> implements Serializable {
    private static final long serialVersionUID = -275582248840137389L;
    private Long count;
    private int code;
    private int pages;
    private List<T> data;
}
